package util;

import java.util.HashMap;
import java.util.Map;

/***
 * 协议状态码
 * 通知应用相关协议
 * 所有状态码都以3002 开头 ，避免与其他应用冲突（3002代表通知）
 * @author Administrator
 *
 */
public class ResultStatusCode {
	private static final Map<Integer,String> codeMap = new HashMap<Integer,String>();	
	public static final int NOTICE_HAVE_BEEN_DELETED = 30021201;
	public static final int NOTICE_OUT_ALLOWD_SCOPE = 30021202;
	static {		
//		//12XX
//		String msg =NoticeProperties.getProperty("notice.IsBeDeleted", "该通知已被撤回并删除");
//		codeMap.put(NOTICE_HAVE_BEEN_DELETED, msg);
//		msg =NoticeProperties.getProperty("notice.out_scope", "权限错误，超出授权范围");
//		codeMap.put(NOTICE_OUT_ALLOWD_SCOPE, msg);
	}
	
    public static String desc(int code){
    	String desc = codeMap.get(code);    	
    	return desc != null ? desc : "未定义错误";
    }
}
